package main.Q2001_2100;

public class Q2011_2020 {
    public static void main(String[] args) {
        System.out.println("Question2011：执行操作后的变量值");
        System.out.println("Question2012：");
        System.out.println("Question2013：");
        System.out.println("Question2014：");
        System.out.println("Question2015：");
        System.out.println("Question2016：");
        System.out.println("Question2017：");
        System.out.println("Question2018：");
        System.out.println("Question2019：");
        System.out.println("Question2020：");
    }
}

class Question2011 {
    public int finalValueAfterOperations(String[] operations) {
        int result = 0;
        for (String op : operations) {
            if (op.contains("+")) result++;
            else result--;
        }
        return result;
    }
}